#define  _CRT_SECURE_NO_WARNINGS 1

#include "string.h"



namespace my
{
	void test01()
	{
		string s1;
		string s2("abc");

		cout << s1.c_str() << endl;
		cout << s2.c_str() << endl;
	}

	void test02()
	{
		string s1("abcd");

		for (int i = 0; i < s1.size(); i++)
		{
			cout << s1[i] << " ";
		}
		cout << endl;


		for (auto c : s1)
		{
			cout << c << " ";
		}
		cout << endl;
	}

	void test03()
	{
		string s1("abcd");
		s1.PushBack('e');

		cout << s1.c_str() << endl;
	}

}



int main()
{
	//my::test01();
	//my::test02();
	return 0;
}











